package com.opensource.lzx.entity;

import com.opensource.lzx.annotation.GeneralValid;
import com.opensource.lzx.enums.ValidType;

import java.util.List;

/**
 * @Author: 739891618@qq.com
 * @Date: 2022-11-16 21:54:09
 * @ClassName: ParentVO
 * @Describe: this is a ...
 */
public class ParentVO {
    @GeneralValid
    private String name;

    @GeneralValid(valid = {ValidType.EMPTY_VALID, ValidType.RANGE_VALID}, range = {"a", "b", "c"})
    private String type;

    @GeneralValid
    private List<ChildVO> childList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<ChildVO> getChildList() {
        return childList;
    }

    public void setChildList(List<ChildVO> childList) {
        this.childList = childList;
    }
}
